package com.fastword.demo.domain;

import java.util.LinkedHashMap;

/**
 * 响应结构
 *
 * @author wanghe
 */
public class DefaultWeatherClientResponseProp {

    private int code;

    private String msg;

    private String success;

    private LinkedHashMap<String, Object> result;

    public int getCode() {
        return code;
    }

    public DefaultWeatherClientResponseProp(int code, String msg, LinkedHashMap<String, Object> result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public String getSuccess() {
        return success;
    }

    public DefaultWeatherClientResponseProp setSuccess(String success) {
        this.success = success;
        return this;
    }

    public DefaultWeatherClientResponseProp setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public DefaultWeatherClientResponseProp setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getResult() {
        return result;
    }

    public DefaultWeatherClientResponseProp setResult(LinkedHashMap<String, Object> result) {
        this.result = result;
        return this;
    }

    @Override
    public String toString() {
        return "{" +
                "code=" + code +
                ", message='" + msg + '\'' +
                ", data=" + result +
                '}';
    }
}
